package com.amado.course10Function;

public class FunctionVoid {
	//全局变量
	static int maxValue = 123;
	public static void main(String[] args) {
		System.out.println(maxValue);
		String name ="张三";
		print(name);
		int age1=12;
		int age2=14;
		System.out.println(getMax(age1,age2));
		Integer.valueOf("123");
	}
	/**
	 * 打印，无返回值
	 * @param name
	 */
	public static void print(String name){
		System.out.println(name);
	}
	public static int plus(int a,int b){
		return a+b;
	}
	/**
	 * 获取最大值
	 * @param value1
	 * @param value2
	 * @return
	 */
	public static int getMax(int value1,int value2){
		int c=0;
//		return value1>value2?value1:value2;
		if(value1>value2){
			int a=0;
			return value1;
		}else{
			int a=0;
			return value2;
		}
	}
}
